package com.think.admin.model.param.role;

import com.think.common.enums.StateEnum;
import com.think.common.model.BaseModel;
import com.think.common.validation.Create;
import com.think.common.validation.CreateOrUpdate;
import com.think.common.validation.Update;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Null;

/**
 * <p>
 * 角色
 * </p>
 *
 * @author: xwj
 * @data: 2019-04-08
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class RoleParam extends BaseModel {

    private static final long serialVersionUID = 1L;

    /**
     * 角色名称
     */
    @NotBlank(groups = {CreateOrUpdate.class}, message = "角色名称不能为空")
    private String roleName;

    /**
     * 备注
     */
    private String remark;

    /**
     * 状态
     */
    @Null(groups = {CreateOrUpdate.class}, message = "用户状态强制为空值")
    private StateEnum state;
}
